<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
    <script src="https://cdn.bootcdn.net/ajax/libs/axios/0.21.1/axios.js"></script>
     <script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.6.0/jquery.js"></script>
    <link rel="stylesheet" href="../css/manager.css">
</head>
<body>
<h1 align="center">A.S 美发管理系统</h1>
<div id="vm_div">
    <form action="">
        <table border="0">
            <th colspan="2">登录</th>
            <tr>
                <td align="center" colspan="2"><input type="text" name="username1" placeholder="账号"></td>
            </tr>
            <tr>
                <td align="center" colspan="2"><input type="password" name="password1" placeholder="密码"></td>
            </tr>
            <tr>
                 <td align="center">记住账号密码:<input type="checkbox" name="rem"></td>
            </tr>
            <tr>
                <td align="center" colspan="2"><input type="button" value="登录" @click="login()"></td>
            </tr>
        </table>
    </form>

</div>


</body>
<script src="indexMs.js"></script>
<script>
    let cookie = document.cookie;
    let cookies = cookie.split(";");
    for (let cookieStr of cookies){
        if (cookieStr.indexOf("username1")!=-1){
            let username = cookieStr.split("=")[1];
            $("input:first").val(username);
        }
        if (cookieStr.indexOf("password1") != -1){
            let password = cookieStr.split("=")[1];
            $("input:eq(1)").val(password);
        }
    }
</script>
</html>